-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve deps #431
Improve deps #431
Conversation
Itxaka
commented
Feb 18, 2025
- Bump some of the generic deps
- Add the GetSecureBoot method so we can drop the efi dep
- Remove earthly stuff
- Bump some of the generic deps - Add the GetSecureBoot method so we can drop the efi dep - Remove earthly stuff Signed-off-by: Itxaka <[email protected]>
|
||
require ( | ||
github.com/avast/retry-go v3.0.0+incompatible | ||
github.com/containerd/containerd v1.7.25 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was just moved from below into the main require as we had 2 require stanzas for some reason
github.com/gofrs/uuid v4.4.0+incompatible | ||
github.com/google/go-tpm v0.9.3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
Signed-off-by: Itxaka <[email protected]>
@@ -348,3 +350,31 @@ func Copy(src, dst string) error { | |||
} | |||
return nil | |||
} | |||
|
|||
// GetSecureboot checks if secureboot is enabled in the system by checking the expected efivar | |||
func GetSecureboot() bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Manually checking the Efivar for Secureboot support saves us from depending on go-uefi. we only used this part and checking a single efi var is simple
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Signed-off-by: Itxaka <[email protected]>
Signed-off-by: Itxaka <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #431 +/- ##
==========================================
- Coverage 12.13% 11.98% -0.16%
==========================================
Files 11 11
Lines 1804 1828 +24
==========================================
Hits 219 219
- Misses 1568 1592 +24
Partials 17 17 ☔ View full report in Codecov by Sentry. |
@@ -12,7 +12,6 @@ import ( | |||
"syscall" | |||
"time" | |||
|
|||
"github.com/foxboron/go-uefi/efi" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!